class TFLoadouts extends Object
	Config(Loadouts);

/*var string loadout[9];           //to get which index
var float totalcost;                //total cost of all weapons in the loadout
var config string loadout1name,   // Loadout names, Displayed in the menu
                  loadout2name,
                  loadout3name,
                  loadout4name,
                  loadout5name,
                  loadout6name,
                  loadout7name,
                  loadout8name,
                  loadout9name;
var config string loadout1[9],     // Loadout index, for each of the players loadouts
                  loadout2[9],
                  loadout3[9],
                  loadout4[9],
                  loadout5[9],
                  loadout6[9],
                  loadout7[9],
                  loadout8[9],
                  loadout9[9];
var string Weaponlist[43];
var string Assaultrifle;

function Purchase(int selectedindex)
{
 local string leftS, rightS;
 local float creds;
 local int i, limit;

 limit=9;
 i=0;
 totalcost=0;

 for(i=0;i<ArrayCount(loadout);i++)
 {
     if(selectedindex==0) loadout[i]=loadout1[i];
     else if(selectedindex==1) loadout[i]=loadout2[i];
     else if(selectedindex==2) loadout[i]=loadout3[i];
     else if(selectedindex==3) loadout[i]=loadout4[i];
     else if(selectedindex==4) loadout[i]=loadout5[i];
     else if(selectedindex==5) loadout[i]=loadout6[i];
     else if(selectedindex==6) loadout[i]=loadout7[i];
     else if(selectedindex==7) loadout[i]=loadout8[i];
     else if(selectedindex==8) loadout[i]=loadout9[i];
 }
 i=0;

    while(i<limit)
    {
        divide(loadout[i]," ",leftS,rightS);

        if(leftS=="") creds=0;
        else creds=float(leftS);

        totalcost+=creds;
	i++;
	}

    //if(!tfpri(Instigator).CheckCredits(totalcost))
        //return;

    i=0;

    while(i<limit)
    {
        divide(loadout[i]," ",leftS,rightS);

        if(leftS=="") creds=0;
        else creds=float(leftS);

        tfpri(viewportowner.Actor.playerreplicationinfo).addweapon(rightS, creds);
	i++;
	}
}

*/
defaultproperties
{/*
loadout1name="Name"
loadout1(0)=AssaultRifle
loadout1(1)=
loadout1(2)=
loadout1(3)=
loadout1(4)=
loadout1(5)=
loadout1(6)=
loadout1(7)=
loadout1(8)=
loadout2name="Name"
loadout2(0)=
loadout2(1)=
loadout2(2)=
loadout2(3)=
loadout2(4)=
loadout2(5)=
loadout2(6)=
loadout2(7)=
loadout2(8)=
loadout3name="Name"
loadout3(0)=
loadout3(1)=
loadout3(2)=
loadout3(3)=
loadout3(4)=
loadout3(5)=
loadout3(6)=
loadout3(7)=
loadout3(8)=
loadout4name="Name"
loadout4(0)=
loadout4(1)=
loadout4(2)=
loadout4(3)=
loadout4(4)=
loadout4(5)=
loadout4(6)=
loadout4(7)=
loadout4(8)=
loadout5name="Name"
loadout5(0)=
loadout5(1)=
loadout5(2)=
loadout5(3)=
loadout5(4)=
loadout5(5)=
loadout5(6)=
loadout5(7)=
loadout5(8)=
loadout6name="Name"
loadout6(0)=
loadout6(1)=
loadout6(2)=
loadout6(3)=
loadout6(4)=
loadout6(5)=
loadout6(6)=
loadout6(7)=
loadout6(8)=
loadout7name="Name"
loadout7(0)=
loadout7(1)=
loadout7(2)=
loadout7(3)=
loadout7(4)=
loadout7(5)=
loadout7(6)=
loadout7(7)=
loadout7(8)=
loadout8name="Name"
loadout8(0)=
loadout8(1)=
loadout8(2)=
loadout8(3)=
loadout8(4)=
loadout8(5)=
loadout8(6)=
loadout8(7)=
loadout8(8)=
loadout9name="Name"
loadout9(0)=
loadout9(1)=
loadout9(2)=
loadout9(3)=
loadout9(4)=
loadout9(5)=
loadout9(6)=
loadout9(7)=
loadout9(8)=
     Weaponlist(0)="30 Taskforces.TFAssaultrifle"
     Weaponlist(1)="Taskforces.TFThermoBlaster"
     Weaponlist(2)="Taskforces.TFBioRifle"
     Weaponlist(3)="Taskforces.TFShockRifle"
     Weaponlist(4)="Taskforces.TFLinkGun"
     Weaponlist(5)="Taskforces.TFMiniGun"
     Weaponlist(6)="Taskforces.TFFlakCannon"
     Weaponlist(7)="Taskforces.TFRocketLauncher"
     Weaponlist(8)="Taskforces.TFSniperRifle"
     Weaponlist(9)="Taskforces.TFClassicSniperrifle"
     Weaponlist(10)="Taskforces.TFDisruptor"
     Weaponlist(11)="Taskforces.TFMassDriver"
     Weaponlist(12)="Taskforces.TFProxyMineThrower"
     Weaponlist(13)="Taskforces.TFClaw"
     Weaponlist(14)="Taskforces.TFMinelayer"
     Weaponlist(15)="Taskforces.TFTPainter"
     Weaponlist(16)="Taskforces.TFIonPainter"
     Weaponlist(17)="Taskforces.TFGrenadeLauncher"
     Weaponlist(18)="Taskforces.TFThermoProj"
     Weaponlist(19)="Taskforces.TFFusionGatling"
     Weaponlist(20)="Taskforces.TFSMiniCannon"
     Weaponlist(21)="Taskforces.TFMedPack"
     Weaponlist(22)="Taskforces.TFDepthRadar"
     Weaponlist(23)="Taskforces.TFLifeScanner"
     Weaponlist(24)="Taskforces.TFReplicator"
     Weaponlist(25)="Taskforces.TFShieldBelt"
     Weaponlist(26)="Taskforces.TFShroud"
     Weaponlist(27)="Taskforces.TFThrustBoots"
     Weaponlist(28)="Taskforces.TFTorsoBomb"
     Weaponlist(29)="Taskforces.TFBanner"
     Weaponlist(30)="Taskforces.TFCMGun"
     Weaponlist(31)="Taskforces.TFParaTClass"
     Weaponlist(32)="Taskforces.TFGunnerClass"
     Weaponlist(33)="Taskforces.TFMMGun"
     Weaponlist(34)="Taskforces.TFMDGun"
     Weaponlist(35)="Taskforces.TFNKGun"
     Weaponlist(36)="Taskforces.TFCNGun"
     Weaponlist(37)="Taskforces.TFWBGun"
     Weaponlist(38)="Taskforces.TFWLGun"
     Weaponlist(39)="Taskforces.TFMIC"
     Weaponlist(40)="Taskforces.TFTGrenade"
     Weaponlist(41)="Taskforces.gDestroyer"
     Weaponlist(42)="Taskforces.TFRedeemer"
     Assaultrifle=Weaponlist[0]*/
}
